<h1>Listing board_entries</h1>

<table>
  <tr>
    <th>Board Type</th>
    <th>Board Category</th>
    <th>Title</th>
    <th>Text</th>
    <th>Email</th>
    <th>Phone</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @board_entries.each do |board_entry| %>
  <tr>
    <td><%= board_entry.board_type.name %></td>
    <td><%= board_entry.board_category.name %></td>
    <td><%= board_entry.title %></td>
    <td><%= board_entry.text %></td>
    <td><%= board_entry.email %></td>
    <td><%= board_entry.phone %></td>

    <td><%= link_to 'Show', board_entry %></td>
    <td><%= link_to 'Edit', edit_board_entry_path(board_entry) %></td>
    <td><%= link_to 'Destroy', board_entry, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Board entry', new_board_entry_path %>
